blobmsg: refactor blobmsg_cast_u64/s64
authorÁlvaro Fernández Rojas <[email protected]>
Mon, 10 Nov 2025 16:36:59 +0000 (17:36 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 15:14:50 +0000 (16:14 +0100)
commita75209f62982f7218f73b9b4fd9b705e19f5f94a
tree27e34c84cdd6767e2b684bf65800c95a1082b5e7
parent97d1839295e5d8a28087d8a883d6405d900c8e82
blobmsg: refactor blobmsg_cast_u64/s64

Instead of calling blobmsg_type() for each if/else block, just call it
once and use it with a switch.

Link: https://github.com/openwrt/libubox/pull/24
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
blobmsg.h